/**
 * 
 */
package com.ltmt.es.pojo;

import java.util.ArrayList;
import java.util.List;

import com.ltmt.es.persistence.entity.HistoricCombination;

/**
 * @author aruizred
 *
 */
public class PrimitivaCombination {
	

	private List<Integer> combination;
	private int complementary;
	
	private Float[] hitStats = new Float[5];
	
	
	
	public PrimitivaCombination (List<Integer> combination){
		this.combination = combination;
	}

	public PrimitivaCombination (List<Integer> combination, int complementary){
		this.combination = combination;
		this.complementary = complementary;
	}

	public PrimitivaCombination(HistoricCombination hComb) {
		String[] arrayCombination = hComb.getCombination().split("-");
		List<Integer> combination = new ArrayList<Integer>();
		for (int i=0; i<arrayCombination.length; i++){
			combination.add(Integer.parseInt(arrayCombination[i]));
		}
		
		this.combination = combination;
		this.complementary = hComb.getComplementary();
	}

	public PrimitivaCombination() {
		this.combination = new ArrayList<Integer>();
	}

	/**
	 * @return the combination
	 */
	public List<Integer> getCombination() {
		return combination;
	}

	/**
	 * @param combination the combination to set
	 */
	public void setCombination(List<Integer> combination) {
		this.combination = combination;
	}

	/**
	 * @return the complementary
	 */
	public int getComplementary() {
		return complementary;
	}

	/**
	 * @param complementary the complementary to set
	 */
	public void setComplementary(int complementary) {
		this.complementary = complementary;
	}

	public Float[] getHitStats() {
		return hitStats;
	}

	public void setHitStats(Float[] hitStats) {
		this.hitStats = hitStats;
	}
}
